package com.itheima.自习.第一次.第十一题;
//定义项目经理类Manager 【属性：姓名 工号 工资 奖金】【行为：工作work】
public class Manager extends Coder {
    private Double bonus;

    @Override
    public void work(){
        System.out.println("工资为:" + this.getSalary() + ",奖金为:" + bonus + ",的项目经理正在管理程序员写代码");
    }

    public Manager(String name, String id, Double salary, Double bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public Manager() {
    }
}
